var RegionDialog = function(){
	var statedialog,citydialog;
    return { 	
        showStateDialog : function(targetEL,animateEL){
	            if(!statedialog){ 
	                statedialog = new Ext.BasicDialog(targetEL, { 
	                        width:300,
	                        height:150,
	                        shadow:true,
	                        minWidth:200,
	                        minHeight:400,
	                        proxyDrag: true,
	                        animateTarget:animateEL
	                });
	                statedialog.addKeyListener(27, statedialog.hide, statedialog);
	            }
            statedialog.show();
        },
        hideStateDialog:function(){
        	statedialog.hide();
        },
        showCityDialog : function(targetEL,animateEL){
	            if(!citydialog){ 
	                citydialog = new Ext.BasicDialog(targetEL, { 
	                        width:300,
	                        height:150,
	                        shadow:true,
	                        minWidth:200,
	                        minHeight:400,
	                        proxyDrag: true,
	                        animateTarget:animateEL
	                });
	                citydialog.addKeyListener(27, citydialog.hide, citydialog);
	            }
            citydialog.show();
        },
        hideCityDialog:function(){
        	citydialog.hide();
        }
    };
}();